<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<script>

//【示例3】下面示例创建一个对象，该对象继承于Shape对象，即把Shape对象作为Square对象的原型。
var Shape = { twoDimensional: true, color: undefined, hasLineSegments: undefined };
var Square = Object.create(Shape); 
document.write(Square.twoDimensional);



</script>
</head>

<body>
</body>
</html>
